<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns object of class hw_api</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.hwapi-hgcsp" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">hwapi_hgcsp</h1>
  <p class="verinfo">(PHP 4, PHP 5 &lt; 5.2.0, PECL hwapi SVN)</p><p class="refpurpose"><span class="refname">hwapi_hgcsp</span> &mdash; <span class="dc-title">Returns object of class hw_api</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.hwapi-hgcsp-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>hwapi_hgcsp</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$hostname</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$port</code></span>
  ] ) : <span class="type"><span class="type HW_API">HW_API</span></span></div>

  <p class="para rdfs-comment">
   Opens a connection to the Hyperwave server on host
   <code class="parameter">hostname</code>. The protocol used is HGCSP.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.hwapi-hgcsp-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">hostname</code></dt>

     <dd>

      <p class="para">
       The host name.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">port</code></dt>

     <dd>

      <p class="para">
       If you do not pass a port number, 418 is used.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.hwapi-hgcsp-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an instance of <strong class="classname">HW_API</strong>.
  </p>
 </div>


</div></div></div></body></html>